package com.iwe3.operation.mapper;

import com.iwe3.operation.dto.LoginDto;
import com.iwe3.operation.entity.ManagerEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ManagerMapper {

    @ResultType(ManagerEntity.class)
    @Select("select id,user_name userName from t_manager where user_name =#{l.userCode} and user_password = #{l.userPassword}  ")
    ManagerEntity login(@Param("l") LoginDto dto);
}
